<?php

class myUser extends sfGuardSecurityUser
{
  public function addFlashMessage($message)
  {  
    $stack = $this->getFlash('stack_messages', array());
    array_push($stack,$message);
    $this->setFlash('stack_messages',$stack,false);
  }

  public function getSedeId() {
    return $this->getGuardUser()->getSedeId();
  }
  
  public function getSede() {
    return $this->getGuardUser()->getSede();
  }

  public function getAlumno() {
    return $this->getGuardUser()->getAlumno();
  }
  
  public function getAlumnoId() {
    return $this->getGuardUser()->getAlumno()->getId();
  }
}
